package com.example.mybites.test.controller;/*
   
/**
* @program: demo
*
* @description: 控制层
*
* @author: kk
*
* @create: 2020-02-04 10:00
**/

import com.example.mybites.test.model.AppleMessage;
import com.example.mybites.test.service.IAppleMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class AppleMessageController {
    @Autowired
    private IAppleMessageService iAppleMessageService;
    @RequestMapping("/getAppleMessage")
    public List<AppleMessage> getAppleMessage() {

        List<AppleMessage> lsit=  iAppleMessageService.getList();
        return lsit;
    }

}
